session=$1
tmux has-session -t $session
if [ $? != 0 ]
then
     tmux new-session -s $session -n Youtube -d "mpsyt"
     tmux split-window -t "$session:0.0" -v "newsbeuter -q -C ~/.newsbeuter/config_yt -u ~/.newsbeuter/youtube.list"
     tmux attach -t $session
else
     echo 'SESSION ALREADY EXISTS'
fi
